<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center masterDetails_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub masterDetails_fd0_0'>
					<view class='flex flex-wrap align-center masterDetails_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  masterDetails_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<text class='masterDetails_fd0_0_c1'>师傅详情</text>
					<view class='flex flex-wrap align-center masterDetails_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout masterDetails_flex_1">
				<view class='flex flex-wrap align-stretch masterDetails_fd1_0'>
					<view class='flex flex-wrap align-center'>
						<image class='masterDetails_fd1_0_c0_c0' mode="aspectFill" :src='masterWorkerData.avatar'>
						</image>
					</view>
					<view class='flex flex-direction flex-wrap align-stretch flex-sub masterDetails_fd1_0_c1'>
						<view class='flex flex-wrap align-center masterDetails_fd1_0_c1_c0'>
							<text class='masterDetails_fd1_0_c1_c0_c0'>{{masterWorkerData.nickname}}</text>
						</view>
						<view class='flex flex-wrap align-center masterDetails_fd1_0_c1_c0'>
							<text class='masterDetails_fd1_0_c1_c1_c0'>年龄：</text>
							<text class='masterDetails_fd1_0_c1_c1_c0'>{{masterWorkerData.age}}</text>
						</view>
						<view class='flex flex-wrap align-center masterDetails_fd1_0_c1_c0'>
							<text class='masterDetails_fd1_0_c1_c1_c0'>所属地：</text>
							<text
								class='flex-sub masterDetails_fd1_0_c1_c1_c0'>{{masterWorkerData.suozaichengshi}}</text>
						</view>
						<view class='flex flex-wrap align-center masterDetails_fd1_0_c1_c0'>
							<text class='masterDetails_fd1_0_c1_c1_c0'>所属公司：</text>
							<text class='flex-sub masterDetails_fd1_0_c1_c1_c0'>{{masterWorkerData.store_name}}</text>
						</view>
						<view class='flex flex-wrap align-center justify-end masterDetails_fd1_0_c1_c0'>
							<button class='AuntieDetails_fd2_0_c1_c5_c0_hiae'
								@tap.stop="callMobile(masterWorkerData.store_moblie)">{{$t('咨询')}}</button>
						</view>
						<!--     <view   class='flex flex-wrap align-center masterDetails_fd1_0_c1_c3'      >
        <text class='masterDetails_fd1_0_c1_c1_c0'  >从业时间：</text>
<text class='masterDetails_fd1_0_c1_c1_c0'  >{{masterWorkerData.practise_time}}</text>
</view>
 -->
					</view>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch masterDetails_fd1_1'
					v-if="masterWorkerData.remark">
					<text class='masterDetails_fd1_1_c0'>个人介绍</text>
					<text class='masterDetails_fd1_1_c1'>{{masterWorkerData.remark}}</text>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch AuntieDetails_fd2_1_hiae' v-if="masterWorkerData.category.length != ''">
					<text class='AuntieDetails_fd2_1_c0_hiae'>{{$t('服务技能')}}</text>
					<view class='flex flex-wrap align-center AuntieDetails_fd2_2_c1_hiae'>
						<template v-for='(item,key0) in masterWorkerData.category'>
							<view class='flex flex-wrap align-center AuntieDetails_fd2_2_c1_c0_hiae' :key='key0'>
								<text class='AuntieDetails_fd2_2_c1_c0_c0_hiae'>{{item.name}}</text>
							</view>
						</template>
					</view>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch masterDetails_fd1_1'
					v-if="masterWorkerData.pictures.length!=0">
					<text class='masterDetails_fd1_1_c0'>个人风采</text>
					<view class='flex flex-wrap align-center masterDetails_fd1_2_c1'>
						<template v-for='(item,key0) in masterWorkerData.pictures'>
							<view class='flex flex-wrap align-center masterDetails_fd1_3_c1_c2_c0' :key='key0'>
								<image class='masterDetails_fd1_3_c1_c2_c0_c0' mode="aspectFill" :src='item'
									@tap.stop="multiImagePreview(item,masterWorkerData.pictures,'')"></image>
							</view>
						</template>
					</view>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch masterDetails_fd1_1'
					v-if="masterWorkerData.certificates.length!=0">
					<text class='masterDetails_fd1_1_c0'>资质证书</text>
					<view class='flex flex-wrap align-center masterDetails_fd1_2_c1'>
						<template v-for='(item,key0) in masterWorkerData.certificates'>
							<view class='flex flex-wrap align-center masterDetails_fd1_3_c1_c2_c0' :key='key0'>
								<image class='masterDetails_fd1_3_c1_c2_c0_c0' mode="aspectFill" :src='item'
									@tap.stop="multiImagePreview(item,masterWorkerData.certificates,'')"></image>
							</view>
						</template>
					</view>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch masterDetails_fd1_2'>
					<view class='flex flex-wrap align-center masterDetails_fd1_2_c0'>
						<text class='fu-iconfont2  masterDetails_fd1_2_c0_c0'>&#xe8e4;</text>
						<text class='masterDetails_fd1_2_c0_c1'>身份认证</text>
						<text class='flex-sub masterDetails_fd1_2_c0_c2'>平台验证身份认证通过</text>
					</view>
					<view class='flex flex-wrap align-center masterDetails_fd1_2_c0'>
						<text class='fu-iconfont2  masterDetails_fd1_2_c0_c0'>&#xe8e4;</text>
						<text class='masterDetails_fd1_2_c0_c1'>技能认证</text>
						<text class='flex-sub masterDetails_fd1_2_c0_c2'>技能认证通过</text>
					</view>
					<!-- <view class='flex flex-wrap align-center masterDetails_fd1_2_c0'>
						<text class='fu-iconfont2  masterDetails_fd1_2_c0_c0'>&#xe8e4;</text>
						<text class='masterDetails_fd1_2_c0_c1'>简历真实</text>
						<text class='flex-sub masterDetails_fd1_2_c0_c2'>劳动者已签署真实性承诺书</text>
					</view>
					<view class='flex flex-wrap align-center masterDetails_fd1_2_c0'>
						<text class='fu-iconfont2  masterDetails_fd1_2_c0_c0'>&#xe8e4;</text>
						<text class='masterDetails_fd1_2_c0_c1'>职业培训</text>
						<text class='flex-sub masterDetails_fd1_2_c0_c2'>参加家政服务项目并通过考核</text>
					</view>
					<view class='flex flex-wrap align-center masterDetails_fd1_2_c0'>
						<text class='fu-iconfont2  masterDetails_fd1_2_c0_c0'>&#xe8e4;</text>
						<text class='masterDetails_fd1_2_c0_c1'>背景调查</text>
						<text class='flex-sub masterDetails_fd1_2_c0_c2'>最新背调结果通过</text>
					</view> -->
				</view>
				<view class='flex flex-direction flex-wrap align-stretch masterDetails_fd1_3'
					v-if="masterWorkerData.serviceevaluate.length!=0">
					<text class='masterDetails_fd1_3_c0'>用户评价</text>
					<template v-for='(item,key0) in masterWorkerData.serviceevaluate'>
						<view class='flex flex-direction flex-wrap align-stretch masterDetails_fd1_3_c1' :key='key0'>
							<view class='flex flex-wrap align-center masterDetails_fd1_3_c1_c0'>
								<image class='masterDetails_fd1_3_c1_c0_c0' mode="aspectFill" :src='item.user_avatar'>
								</image>
								<view
									class='flex flex-direction flex-wrap align-stretch flex-sub masterDetails_fd1_3_c1_c0_c1'>
									<text class='masterDetails_fd1_3_c1_c0_c1_c0'>{{item.user_nickname}}</text>
									<view class='flex flex-wrap align-center'>
										<template v-for="starNum in [1,2,3,4,5]">
											<image v-if="item.evaluate_star >= starNum" :key="starNum"
												class='masterDetails_star1fd1_3_c1_c0_c1_c1' mode="aspectFit"
												:src='STATIC_URL+"143.png"'></image>
											<image v-else :key="starNum" class='masterDetails_star1fd1_3_c1_c0_c1_c1'
												mode="aspectFit" :src='STATIC_URL+"91.png"'></image>
										</template>
									</view>
								</view>
								<text class='masterDetails_fd1_3_c1_c0_c2'>{{item.create_time}}</text>
							</view>
							<text class='masterDetails_fd1_3_c1_c1'>{{item.evaluate_content}}</text>
							<view class='flex flex-wrap align-center masterDetails_fd1_3_c1_c2'>
								<template v-for='(child,key1) in item.evaluate_picture'>
									<view class='flex flex-wrap align-center masterDetails_fd1_3_c1_c2_c0' :key='key1'>
										<image class='masterDetails_fd1_3_c1_c2_c0_c0' mode="aspectFill" :src='child'
											@tap.stop="multiImagePreview(child,item.evaluate_picture,'')"></image>
									</view>
								</template>

							</view>
							<view class='flex flex-wrap align-center masterDetails_fd1_3_c1_c3'>
							</view>
						</view>
					</template>

				</view>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"masterWorkerData": {
					"nickname": "",
					"avatar": "",
					"user_gender": "",
					"t_phone": "",
					"remark": "",
					"practise_time": "",
					"suozaichengshi": "",
					"age": "",
					"serviceevaluate": []
				},
				"id": ""
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {
				id
			} = options
			if (id !== undefined) this.id = id
			this.getMasterWorkerFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取师傅详情
			async getMasterWorkerFunc() {
				//请求方法
				//数据验证

				let datamasterWorkerData = await this.$api.get(global.apiUrls.post648866569adfb, {
					user_id: this.id
				});

				if (datamasterWorkerData.data.code != 1) {
					this.$message.info(datamasterWorkerData.data.msg);
					return
				}
				let infomasterWorkerData = datamasterWorkerData.data;
				this.masterWorkerData = infomasterWorkerData.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(248, 248, 248, 1);
		background-size: 100% auto;
	}

	.masterDetails_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.masterDetails_fd0_0_c1 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
	}

	.masterDetails_fd0_0_c0_c0 {
		font-size: 32rpx;
		color: #333;
	}

	.masterDetails_fd0_0_c0 {
		width: 120rpx;
		height: 88rpx;
	}

	.masterDetails_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		height: 88rpx;
	}

	.masterDetails_flex_1 {
		padding: 16rpx 24rpx 0rpx 24rpx;
	}

	.masterDetails_fd1_3_c1_c3 {
		background: rgba(238, 238, 238, 1);
		margin: 0rpx 24rpx 0rpx 24rpx;
		width: 654rpx;
		height: 1rpx;
		background-size: 100% auto;
	}

	.masterDetails_fd1_3_c1_c2_c0_c0 {
		width: 200rpx;
		height: 200rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.masterDetails_fd1_3_c1_c2_c0 {
		margin: 0rpx 10rpx 32rpx 10rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.masterDetails_fd1_3_c1_c2 {
		padding: 0rpx 12rpx 0rpx 12rpx;
	}

	.masterDetails_fd1_3_c1_c1 {
		margin: 0rpx 24rpx 24rpx 24rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #333;
	}

	.masterDetails_fd1_3_c1_c0_c2 {
		font-size: 24rpx;
		font-weight: 400;
		color: #333;
	}

	.masterDetails_star1fd1_3_c1_c0_c1_c1 {
		height: 24rpx;
		margin: 0rpx 5rpx 0rpx 0rpx;
		width: 24rpx;
	}

	.masterDetails_star1fd1_3_c1_c0_c1_c1 {
		width: 24rpx;
		height: 24rpx;
		margin: 0rpx 5rpx 0rpx 0rpx;
	}

	.masterDetails_fd1_3_c1_c0_c1_c0 {
		font-size: 28rpx;
		font-weight: 400;
		color: #333;
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.masterDetails_fd1_3_c1_c0_c1 {
		margin: 0rpx 20rpx 0rpx 0rpx;
	}

	.masterDetails_fd1_3_c1_c0_c0 {
		width: 90rpx;
		height: 90rpx;
		border-radius: 45rpx 45rpx 45rpx 45rpx;
		margin: 0rpx 24rpx 0rpx 0rpx;
	}

	.masterDetails_fd1_3_c1_c0 {
		margin: 0rpx 24rpx 24rpx 24rpx;
	}

	.masterDetails_fd1_3_c1 {
		margin: 24rpx 0rpx 0rpx 0rpx;
	}

	.masterDetails_fd1_3_c0 {
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		font-size: 32rpx;
		font-weight: 600;
		color: #333;
		margin: 0rpx 24rpx 0rpx 24rpx;
	}

	.masterDetails_fd1_3 {
		background: #fff;
		background-size: 100% auto !important;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		box-shadow: 0rpx 3rpx 30rpx rgba(232, 232, 232, 1);
		padding: 32rpx 0rpx 0rpx 0rpx;
		margin-bottom: 32rpx;
	}

	.masterDetails_fd1_2_c0_c2 {
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		color: #333;
		font-size: 28rpx;
		font-weight: 400;
	}

	.masterDetails_fd1_2_c0_c1 {
		color: #333;
		font-size: 28rpx;
		font-weight: 600;
		line-height: 30rpx;
		margin: 0rpx 24rpx 0rpx 0rpx;
	}

	.masterDetails_fd1_2_c0_c0 {
		font-size: 20rpx;
		font-weight: 400;
		color: #2cdb50;
		margin: 0rpx 24rpx 0rpx 0rpx;
	}

	.masterDetails_fd1_2_c0 {
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.masterDetails_fd1_2 {
		background: #fff;
		margin: 0rpx 0rpx 24rpx 0rpx;
		padding: 32rpx 24rpx 0rpx 24rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background-size: 100% auto !important;
		box-shadow: 0rpx 3rpx 30rpx #E8E8E8;
	}

	.masterDetails_fd1_1_c1 {
		color: #333;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 45rpx;
		margin: 0rpx 24rpx 24rpx 24rpx;
	}

	.masterDetails_fd1_1_c0 {
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		font-size: 32rpx;
		font-weight: 600;
		color: #333;
		margin: 0rpx 24rpx 24rpx 24rpx;
	}

	.masterDetails_fd1_1 {
		background: #fff;
		margin: 0rpx 0rpx 24rpx 0rpx;
		padding: 32rpx 0rpx 8rpx 0rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background-size: 100% auto !important;
		box-shadow: 0rpx 3rpx 30rpx #E8E8E8;
	}

	.masterDetails_fd1_0_c1_c3 {
		margin: 0rpx 0rpx 0rpx 0rpx;
	}

	.masterDetails_fd1_0_c1_c1_c0 {
		color: #333;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 30rpx;
	}

	.masterDetails_fd1_0_c1_c0_c0 {
		color: #333;
		font-size: 36rpx;
		font-weight: 400;
		line-height: 45rpx;
	}

	.masterDetails_fd1_0_c1_c0 {
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.masterDetails_fd1_0_c1 {
		margin: 0rpx 0rpx 0rpx 32rpx;
	}

	.masterDetails_fd1_0_c0_c0 {
		width: 250rpx;
		height: 300rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.masterDetails_fd1_0 {
		background: #fff;
		padding: 32rpx 32rpx 32rpx 32rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background-size: 100% auto !important;
		box-shadow: 0rpx 3rpx 30rpx #E8E8E8;
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	//
	.masterDetails_fd1_2_c1_c0_c0 {
		width: 200rpx;
		height: 200rpx;
		border-radius: 16rpx;
	}

	.masterDetails_fd1_2_c1_c0 {
		margin: 0rpx 12rpx 24rpx 12rpx;
	}

	.masterDetails_fd1_2_c1 {
		padding: 0rpx 12rpx 0rpx 12rpx;
	}

	.AuntieDetails_fd2_0_c1_c5_c0_hiae {
		border-radius: 33rpx 33rpx 33rpx 33rpx;
		width: 160rpx;
		line-height: 60rpx;
		font-size: 24rpx;
		background: rgba(227, 29, 26, 1);
		color: #fff;
	}

	//
	.AuntieDetails_fd2_1_hiae {
		margin: 0rpx 0rpx 24rpx 0rpx;
		padding: 32rpx 0rpx 8rpx 0rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background: #fff;
		background-size: 100% auto !important;
		box-shadow: 0rpx 3rpx 30rpx #E8E8E8;

		.AuntieDetails_fd2_1_c1_hiae {
			color: #333;
			font-size: 28rpx;
			font-weight: 400;
			line-height: 45rpx;
			margin: 0rpx 24rpx 24rpx 24rpx;
		}
	}

	.AuntieDetails_fd2_2_c1_hiae {
		margin: 0rpx 24rpx 12rpx 24rpx;

		.AuntieDetails_fd2_2_c1_c0_hiae {
			margin: 0rpx 16rpx 12rpx 0rpx;

			.AuntieDetails_fd2_2_c1_c0_c0_hiae {
				font-size: 24rpx;
				color: var(--benbenFontColor1);
				font-weight: 500;
				background: #f8f8f8;
				background-size: 100% auto;
				padding: 4rpx 8rpx 4rpx 8rpx;
				border-radius: 4rpx;
			}
		}
	}

	.AuntieDetails_fd2_1_c0_hiae {
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		font-size: 32rpx;
		font-weight: 600;
		color: #333;
		margin: 0rpx 24rpx 24rpx 24rpx;
	}
</style>